<?php

require_once dirname(__DIR__).'/vendor/autoload.php';
//require_once dirname(__DIR__).'/config/config.php';



use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;

//数据库配置
//$dbParams = array(
//    'dbname' => DB_DATABASE,
//    'user' => DB_USER,
//    'password' => DB_PASSWORD,
//    'host' => DB_HOST,
//    'driver' => DB_DRIVER,
//    'charset' => DB_CHARSET
//);

//元数据配置
$isDevMode = true;
$paths = array(dirname(__DIR__) . "/src/entity");
$config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode);

//获取EntityManager
/**
 * @var \Doctrine\Common\Persistence\ObjectManager
 */
//$entityManager = EntityManager::create($dbParams, $config);
